package com.zy.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ZyMenu implements Serializable {

    /**
     *  角色对应的菜单表
     *
     *  menuId 当前菜单id
     *  pId 父级菜单id
     * menuName 菜单名
     * url 菜单路径
     * flag 是否禁用该菜单 /0禁用 1启用
     * order 用于菜单排序
     */
    private Integer menuId;
    private Integer pId;
    private String menuName;
    private String url;
    private Integer flag;
    private Integer order;
    private List<ZyMenu> children = new ArrayList<>();
}
